package com.xy.p2p.service;

import java.util.List;
import java.util.Map;

import com.xy.common.page.Pagination;
import com.xy.core.service.BaseService;
import com.xy.p2p.model.Tmember;
import com.xy.p2p.model.Tmemberassetaccount;
import com.xy.p2p.model.Tuser;

public abstract interface TmemberassetaccountService extends BaseService<Tmemberassetaccount>
 {
	public abstract boolean checkExist(String paraName, String paraValue);

	public abstract List<Tmemberassetaccount> getTmemberassetaccount(Map<String, Object> map);

	public abstract Pagination getTmemberassetaccountByPage(Map<String, Object> map, int pageNo, int pageSize);

	public abstract Tmemberassetaccount ModifyAccount(Tmemberassetaccount tmemberassetaccount, String opr, Tuser tuser, double money, String remark);

	// 获取理财资产(投资的计息金额减去已经收回的本金)
	public double getTotalAsset(Tmember tmember);

	// 获取借款负债(融资金额减去投资人的本金收入)
	public double getTotalBorrow(Tmember tmember);

	// 获取投资总收入(余额贷除外)
	public double getTotalIncome(Tmember tmember);
	
	public String billing(long memberid);
}